using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using DomainLayer.Data.Entities;

namespace Infrastructure.Data.Mapping
{
	public class WaybillDealMap : EntityTypeConfiguration<WaybillDeal>
	{
		public WaybillDealMap()
		{
			// Primary Key
			this.HasKey(t => t.WaybillDealID);

			// Properties
			// Table & Column Mappings
			this.ToTable("WaybillDeal");
			this.Property(t => t.WaybillDealID).HasColumnName("WaybillDealID");
			this.Property(t => t.WaybillNO).HasColumnName("WaybillNO");
			this.Property(t => t.DealMan).HasColumnName("DealMan");
			this.Property(t => t.DealStation).HasColumnName("DealStation");
			this.Property(t => t.DealTime).HasColumnName("DealTime");
			this.Property(t => t.DeliverMan).HasColumnName("DeliverMan");
			this.Property(t => t.CreatBy).HasColumnName("CreatBy");
			this.Property(t => t.CreatStation).HasColumnName("CreatStation");
			this.Property(t => t.CreatTime).HasColumnName("CreatTime");
			this.Property(t => t.IsSyn).HasColumnName("IsSyn");
			this.Property(t => t.IsEditLineInfo).HasColumnName("IsEditLineInfo");
		}
	}
}

